import React from "react";
import lazyLoad from "@/routers/utils/lazyLoad";
import { LayoutIndex } from "@/routers/constant";
import { RouteObject } from "@/routers/interface";
// import NoticeAdmin from "@/views/noticeAdmin/index";

//通知管理
const noticeAdminRouter: Array<RouteObject> = [
	{
		element: <LayoutIndex />,
		children: [
			{
				path: "/noticeAdmin/index",
				element: lazyLoad(React.lazy(() => import("@/views/noticeAdmin/index"))),
				// element: <NoticeAdmin />,
				meta: {
					requiresAuth: true,
					title: "通知管理",
					key: "noticeAdmin"
				}
			}
		]
	}
];

export default noticeAdminRouter;
